<template>
  <div>
    <Info
      :operate-type="operateType"
      :dict-category-id="dictCategoryId"
      @doClose="doClose"
      @addComplete="doClose"
    />
  </div>
</template>

<script>

import Info from './components/info'
import operateEnum from '@/enums/operateEnum'

export default {
  name: 'ReportAdd',
  components: {
    Info
  },
  props: {
    dictCategoryId: {
      type: String,
      required: false
    }
  },
  data() {
    return {
      operateType: operateEnum.ADD
    }
  },
  methods: {
    // 关闭页面
    doClose() {
      this.$router.go(-1)
    }
  }
}
</script>

<style scoped>

</style>
